package com.xyw.code.gateway.web.service;

import org.springframework.cloud.gateway.route.RouteDefinition;

import java.util.Collection;

public interface IRouteService {
    /**
     * 得到缓存里面所有的动态路由
     * @return
     */
    Collection<RouteDefinition> getRouteDefinitions();

    boolean save(RouteDefinition routeDefinition);

    boolean update(RouteDefinition routeDefinition);

    boolean delete(String routeDefinition);
}
